﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
  <class name="OrmSmackdown.NHibernate.Address, Ormsmackdown" table="Addresses">
    <id name="AddressId" type="Int32">
      <generator class="identity" />
    </id>
    <!--<property name="PersonId" not-null="true" type="Int32"/>-->
    <property name="IsDefault" not-null="true" type="Boolean"/>
    <property name="Line1" not-null="true" type="String"/>
    <property name="Line2" not-null="false" type="String"/>
    <property name="City" not-null="true" type="String"/>
    <property name="State" not-null="true" type="String"/>
    <property name="ZipCode" not-null="true" type="String"/>
    <property name="ZipCodePlusFour" not-null="true" type="String"/>
    <many-to-one name="Person" class="OrmSmackdown.NHibernate.Person, Ormsmackdown" column="PersonId" fetch="join" not-null="true" />
  </class>
</hibernate-mapping>